<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 2016/6/6
 * Time: 14:25
 */

namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;

/**
 * This is the model class for table "myscrm_erpserviceaddresstemplate".
 *
 * @property string $AddressTemplateId
 * @property string $Address
 * @property string $AuthenticationInfoId
 * @property string $AddressName
 * @property string $AddressFrienldyName
 * @property integer $InitOnOrgCreated
 */
class MyscrmErpserviceaddresstemplateEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_erpserviceaddresstemplate';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['AddressTemplateId'], 'required'],
            [['InitOnOrgCreated'], 'integer'],
            [['AddressTemplateId', 'AuthenticationInfoId'], 'string', 'max' => 36],
            [['Address'], 'string', 'max' => 4000],
            [['AddressName'], 'string', 'max' => 100],
            [['AddressFrienldyName'], 'string', 'max' => 200]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'AddressTemplateId' => 'Address Template ID',
            'Address' => 'Address',
            'AuthenticationInfoId' => 'Authentication Info ID',
            'AddressName' => 'Address Name',
            'AddressFrienldyName' => 'Address Frienldy Name',
            'InitOnOrgCreated' => 'Init On Org Created',
        ];
    }
}